<?php require_once("./includes/functions.php") ?>
<?php
	// finding the current session 
	session_start();
	
	// unsetting all session variables
	$_SESSION = array();
	
	// destroy the session cookie
	if(isset($_COOKIE[session_name()]))
	{
		setcookie(session_name(), '', time()-15000, '/');
	}
	
	// destroying session 
	session_destroy();
	
	redirect_to("index.php?logout=1");
?>
